package com.itheima.day13.thread_Chuangjian.callable;

import java.util.concurrent.ExecutionException;
import java.util.concurrent.FutureTask;

public class Test {
    public static void main(String[] args) throws Exception {
        Mycallable mycallable = new Mycallable(10);
        FutureTask futureTask = new FutureTask(mycallable);
        new Thread(futureTask).start();
        System.out.println(futureTask.get());
    }
}
